package com.nuoniu.sibanyun.entity.so;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *  面积计算表明细
 * </p>
 *
 * @author 小啊刚
 * @since 2021-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("v_area_calculation_detail")
    @ApiModel(value="VAreaCalculationDetail对象", description="")
public class VAreaCalculationDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "销售订单id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "行号")
    @TableField("line_number")
    private String lineNumber;

    @ApiModelProperty(value = "编号")
    @TableField("no")
    private String no;

    @ApiModelProperty(value = "数量")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "金额")
    @TableField("amount")
    private BigDecimal amount;


    @ApiModelProperty(value = "长")
    @TableField("length")
    private BigDecimal length;

    @ApiModelProperty(value = "宽")
    @TableField("width")
    private BigDecimal width;

    @ApiModelProperty(value = "单个面积()")
    @TableField("unit_area")
    private BigDecimal unitArea;

    @ApiModelProperty(value = "合计面积")
    @TableField("total_area")
    private BigDecimal totalArea;

    @ApiModelProperty(value = "开料_长")
    @TableField("cutting_size_length")
    private String cuttingSizeLength;

    @ApiModelProperty(value = "开料_宽")
    @TableField("cutting_size_width")
    private String cuttingSizeWidth;

    @ApiModelProperty(value = "颜色名称")
    @TableField("color_name")
    private String colorName;

    @ApiModelProperty(value = "板材")
    @TableField("panel")
    private String panel;

    @ApiModelProperty(value = "板型")
    @TableField("template")
    private String template;

    @ApiModelProperty(value = "板厚")
    @TableField("panel_thickness")
    private String panelThickness;

    @ApiModelProperty(value = "焊缝")
    @TableField("weld_line")
    private String weldLine;

    @ApiModelProperty(value = "刨槽")
    @TableField("grooving")
    private String grooving;

    @ApiModelProperty(value = "开孔数")
    @TableField("open_number")
    private String openNumber;

    @ApiModelProperty(value = "折弯刀数")
    @TableField("bend_number")
    private String bendNumber;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "自定义字段数据")
    @TableField("define_fields")
    private String defineFields;

    @ApiModelProperty(value = "来源单id")
    @TableField("source_voucher_id")
    private Integer sourceVoucherId;

    @ApiModelProperty(value = "来源单号")
    @TableField("source_voucher_code")
    private String sourceVoucherCode;

    @ApiModelProperty(value = "来源日期")
    @TableField("source_voucher_date")
    private LocalDate sourceVoucherDate;

    @ApiModelProperty(value = "来源单据")
    @TableField("source_voucher_type")
    private String sourceVoucherType;

    @ApiModelProperty(value = "来源明细ID")
    @TableField("source_detail_id")
    private Integer sourceDetailId;

    @ApiModelProperty(value = "累计执行数量")
    @TableField(exist = false)
    private BigDecimal cumExecuteQuantity;

    @ApiModelProperty(value = "累计执行情况")
    @TableField(exist = false)
    private String cumExecuteJson;


}
